.refunds-container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 40rpx;
}

/* 登录提示 */
.login-prompt {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60rpx;
  
  .login-card {
    background: white;
    border-radius: 20rpx;
    padding: 80rpx 60rpx;
    text-align: center;
    box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500rpx;
    
    .login-icon {
      width: 120rpx;
      height: 120rpx;
      margin-bottom: 40rpx;
      opacity: 0.6;
    }
    
    .login-title {
      display: block;
      font-size: 36rpx;
      font-weight: bold;
      color: #333;
      margin-bottom: 20rpx;
    }
    
    .login-desc {
      display: block;
      font-size: 28rpx;
      color: #999;
      margin-bottom: 60rpx;
    }
    
    .login-btn {
      background: #5cb85c;
      color: white;
      border-radius: 50rpx;
      font-size: 32rpx;
      padding: 24rpx 80rpx;
      border: none;
      
      &::after {
        border: none;
      }
    }
  }
}

/* 主要内容 */
.main-content {
  padding: 20rpx;
}

/* 统计卡片 */
.stats-card {
  background: white;
  border-radius: 16rpx;
  padding: 30rpx 20rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  
  .stat-item {
    text-align: center;
    flex: 1;
    
    .stat-number {
      display: block;
      font-size: 48rpx;
      font-weight: bold;
      color: #ff6b35;
      margin-bottom: 8rpx;
    }
    
    .stat-label {
      font-size: 24rpx;
      color: #999;
    }
  }
}

/* 筛选区域 */
.filter-section {
  background: white;
  border-radius: 16rpx;
  padding: 20rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  
  .filter-tabs {
    .tabs-scroll {
      white-space: nowrap;
    }
    
    .tab-item {
      display: inline-block;
      padding: 16rpx 32rpx;
      margin-right: 20rpx;
      font-size: 28rpx;
      color: #666;
      background: #f8f9fa;
      border-radius: 20rpx;
      border: 1rpx solid transparent;
      
      &.active {
        background: #ff6b35;
        color: white;
        font-weight: 500;
      }
    }
  }
}

/* 退款申请列表 */
.refund-list {
  height: calc(100vh - 400rpx);
}

.refund-card {
  background: white;
  border-radius: 16rpx;
  padding: 30rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  
  .refund-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20rpx;
    
    .refund-info {
      flex: 1;
      
      .refund-id {
        display: block;
        font-size: 28rpx;
        color: #666;
        margin-bottom: 10rpx;
      }
      
      .refund-status {
        padding: 8rpx 16rpx;
        border-radius: 16rpx;
        font-size: 24rpx;
        display: inline-block;
        
        &.status-pending {
          background: #fff3cd;
          color: #856404;
        }
        
        &.status-processing {
          background: #cce5ff;
          color: #0066cc;
        }
        
        &.status-completed {
          background: #e8f5e8;
          color: #5cb85c;
        }
        
        &.status-rejected {
          background: #ffebee;
          color: #f44336;
        }
      }
    }
    
    .refund-amount {
      font-size: 36rpx;
      font-weight: bold;
      color: #ff4757;
    }
  }
  
  .order-info {
    background: #f8f9fa;
    padding: 20rpx;
    border-radius: 12rpx;
    margin-bottom: 20rpx;
    
    .order-id {
      display: block;
      font-size: 26rpx;
      color: #666;
      margin-bottom: 8rpx;
    }
    
    .order-time {
      font-size: 24rpx;
      color: #999;
    }
  }
  
  .refund-details {
    margin-bottom: 20rpx;
    
    .refund-type,
    .refund-reason {
      display: flex;
      margin-bottom: 10rpx;
      
      .type-label,
      .reason-label {
        font-size: 26rpx;
        color: #666;
        min-width: 150rpx;
      }
      
      .type-value,
      .reason-value {
        font-size: 26rpx;
        color: #333;
        flex: 1;
      }
    }
    
    .apply-time {
      font-size: 24rpx;
      color: #999;
    }
  }
  
  .customer-info {
    display: flex;
    justify-content: space-between;
    background: #f0f8f0;
    padding: 15rpx 20rpx;
    border-radius: 8rpx;
    margin-bottom: 20rpx;
    
    .customer-name,
    .customer-phone {
      font-size: 26rpx;
      color: #5cb85c;
    }
  }
  
  .refund-actions {
    display: flex;
    gap: 15rpx;
    padding-top: 20rpx;
    border-top: 1rpx solid #f0f0f0;
    
    .action-btn {
      flex: 1;
      padding: 20rpx;
      border-radius: 12rpx;
      font-size: 28rpx;
      border: none;
      
      &.reject {
        background: #ffebee;
        color: #f44336;
        border: 1rpx solid #ffcdd2;
      }
      
      &.approve {
        background: #e8f5e8;
        color: #5cb85c;
        border: 1rpx solid #c8e6c9;
      }
      
      &::after {
        border: none;
      }
    }
  }
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100rpx 60rpx;
  text-align: center;
  
  .empty-icon {
    width: 200rpx;
    height: 200rpx;
    margin-bottom: 30rpx;
    opacity: 0.3;
  }
  
  .empty-text {
    font-size: 30rpx;
    color: #999;
  }
}

/* 加载更多 */
.load-more {
  text-align: center;
  padding: 40rpx;
  
  text {
    font-size: 28rpx;
    color: #ff6b35;
    padding: 20rpx;
  }
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40rpx;
}

.modal-content {
  background: white;
  border-radius: 20rpx;
  width: 100%;
  max-width: 600rpx;
  max-height: 85vh;
  overflow: hidden;
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30rpx;
    border-bottom: 1rpx solid #f0f0f0;
    
    .modal-title {
      font-size: 32rpx;
      font-weight: bold;
      color: #333;
    }
    
    .modal-close {
      font-size: 48rpx;
      color: #999;
      line-height: 1;
      padding: 10rpx;
    }
  }
  
  .modal-body {
    padding: 30rpx;
    max-height: 65vh;
    overflow-y: auto;
    
    .detail-section {
      margin-bottom: 30rpx;
      
      .section-title {
        display: block;
        font-size: 28rpx;
        font-weight: bold;
        color: #333;
        margin-bottom: 20rpx;
        padding-bottom: 10rpx;
        border-bottom: 2rpx solid #5cb85c;
      }
      
      .detail-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15rpx;
        
        .detail-label {
          font-size: 26rpx;
          color: #666;
          min-width: 150rpx;
        }
        
        .detail-value {
          font-size: 26rpx;
          color: #333;
          flex: 1;
          text-align: right;
          
          &.amount {
            color: #ff4757;
            font-weight: bold;
          }
        }
      }
    }
    
    .reason-content {
      .reason-text {
        display: block;
        font-size: 28rpx;
        color: #333;
        margin-bottom: 15rpx;
        font-weight: 500;
      }
      
      .description-text {
        font-size: 26rpx;
        color: #666;
        line-height: 1.5;
      }
    }
    
    .evidence-list {
      display: flex;
      gap: 15rpx;
      flex-wrap: wrap;
      
      .evidence-image {
        width: 120rpx;
        height: 120rpx;
        border-radius: 8rpx;
        background: #f0f0f0;
      }
    }
    
    .order-items {
      .order-item {
        display: flex;
        justify-content: space-between;
        padding: 15rpx 0;
        border-bottom: 1rpx solid #f0f0f0;
        
        .item-name {
          font-size: 26rpx;
          color: #333;
        }
        
        .item-info {
          font-size: 26rpx;
          color: #666;
        }
      }
    }
    
    .total-amount {
      display: block;
      text-align: right;
      font-size: 28rpx;
      color: #ff4757;
      font-weight: bold;
      margin-top: 15rpx;
      padding-top: 15rpx;
      border-top: 1rpx solid #f0f0f0;
    }
    
    .refund-summary {
      background: #f8f9fa;
      padding: 25rpx;
      border-radius: 12rpx;
      margin-bottom: 25rpx;
      
      .summary-text {
        display: block;
        font-size: 28rpx;
        color: #333;
        margin-bottom: 10rpx;
        
        &:last-child {
          margin-bottom: 0;
        }
      }
    }
    
    .reason-input {
      margin-bottom: 25rpx;
      
      .form-label {
        display: block;
        font-size: 28rpx;
        font-weight: 600;
        color: #333;
        margin-bottom: 15rpx;
      }
      
      .reason-textarea {
        width: 100%;
        min-height: 150rpx;
        padding: 20rpx;
        border: 2rpx solid #e0e0e0;
        border-radius: 12rpx;
        font-size: 28rpx;
        background: #fafafa;
        line-height: 1.5;
        
        &:focus {
          border-color: #ff6b35;
          background: white;
        }
      }
      
      .char-count {
        display: block;
        text-align: right;
        font-size: 24rpx;
        color: #999;
        margin-top: 10rpx;
      }
    }
    
    .confirm-info {
      .confirm-text {
        font-size: 28rpx;
        color: #666;
        line-height: 1.5;
        text-align: center;
      }
    }
  }
  
  .modal-footer {
    display: flex;
    gap: 20rpx;
    padding: 30rpx;
    border-top: 1rpx solid #f0f0f0;
    
    .cancel-btn {
      flex: 1;
      padding: 25rpx;
      background: #f5f5f5;
      color: #666;
      border-radius: 12rpx;
      font-size: 30rpx;
      border: none;
      
      &::after {
        border: none;
      }
    }
    
    .confirm-btn {
      flex: 1;
      padding: 25rpx;
      background: #ff6b35;
      color: white;
      border-radius: 12rpx;
      font-size: 30rpx;
      border: none;
      
      &::after {
        border: none;
      }
      
      &:disabled {
        background: #ccc;
      }
    }
  }
}

/* 详情弹窗特殊样式 */
.detail-modal {
  max-height: 90vh;
}

/* 原因弹窗特殊样式 */
.reason-modal {
  .modal-content {
    max-height: 70vh;
  }
}

